gtk+3.0.git
10 years agoiconhelper: Move invalidation check
Benjamin Otte [Sun, 29 Nov 2015 00:36:10 +0000 (01:36 +0100)]
iconhelper: Move invalidation check

Just do the invalidation check once, there's no need to do it in every
branch of the switch.

Also remove useless checks: These functions will not be called if we
already have a rendered surface.

10 years agoiconhelper: Improve size determination for surfaces
Benjamin Otte [Sat, 28 Nov 2015 06:06:37 +0000 (07:06 +0100)]
iconhelper: Improve size determination for surfaces

Instead of just working for image surface, this should now work for all
bounded surfaces.

Test included.

10 years agoiconhelper: Move size computation
Benjamin Otte [Fri, 27 Nov 2015 17:05:36 +0000 (18:05 +0100)]
iconhelper: Move size computation

We do a switch on the image type, so compute the size for a certain
image type right there.

10 years agoimage: queue_resize() after changing icon-size property
Benjamin Otte [Thu, 26 Nov 2015 14:37:42 +0000 (15:37 +0100)]
image: queue_resize() after changing icon-size property

10 years agodragsource: Store an itemdefinition, not an iconhelper
Benjamin Otte [Wed, 25 Nov 2015 14:59:44 +0000 (15:59 +0100)]
dragsource: Store an itemdefinition, not an iconhelper

The icon is never rendered, so there's no need for the extra iconhelper
code.

10 years agoimagedefinition: Split out from icon helper
Benjamin Otte [Tue, 24 Nov 2015 18:55:09 +0000 (19:55 +0100)]
imagedefinition: Split out from icon helper

The image definition is supposed to hold the description about the image
to be displayed. The icon helper actually does caching and tracks
changes.

10 years agowindow: Remove suspicious branch
Benjamin Otte [Tue, 1 Dec 2015 16:25:54 +0000 (17:25 +0100)]
window: Remove suspicious branch

It seems this branch is not needed anymore. It was originally added in
1999 to support gtk_widget_realize(), but all those reasons seem
obsolete today.
Instead just call gtk_widget_realize().

If you end up at this commit when bisecting:
There is no bug that made me remove this code, it was purely meant to be
cleanup / dead code removal. I seem to have introduced a new bug or
bisecting wouldn't have let you here. So it seems we should just revert
this commit.

10 years agoRevert "gdk_pixbuf_get_from_window: honor device scale"
Benjamin Otte [Sun, 29 Nov 2015 03:49:20 +0000 (04:49 +0100)]
Revert "gdk_pixbuf_get_from_window: honor device scale"

This reverts commit 657a43e54e7721fced8ef0e6808271838f14697f.

The commit breaks the assumptions about the arguments in both
gdk_pixbuf_get_from_window() and gdk_pixbuf_get_from_surface().

https://bugzilla.gnome.org/show_bug.cgi?id=757147

10 years agowayland: Remove unused variable
Benjamin Otte [Tue, 1 Dec 2015 23:26:20 +0000 (00:26 +0100)]
wayland: Remove unused variable

Poor gcc was unhappy.

10 years agopopover: Make it possible to constrain to toplevel
Matthias Clasen [Tue, 1 Dec 2015 19:56:56 +0000 (14:56 -0500)]
popover: Make it possible to constrain to toplevel

Under X11, popovers are always constrained to the toplevel
window. Under Wayland, they aren't. This commit adds a
property that allows to explicitly constrain popovers to
the toplevel, giving them the same behavior under Wayland
as under X11.

https://bugzilla.gnome.org/show_bug.cgi?id=757474

10 years agofilechooserbutton: add some spacing between icon and text
Christian Hergert [Tue, 1 Dec 2015 07:09:31 +0000 (23:09 -0800)]
filechooserbutton: add some spacing between icon and text

These were a bit crammed, which doesn't match well with spacing used in
various other parts of gtk.

10 years agogtkwindow: remove headerbar after disposing parent
Olivier Fourdan [Wed, 25 Nov 2015 17:06:53 +0000 (18:06 +0100)]
gtkwindow: remove headerbar after disposing parent

Widgets such as gtkfilechooser may be saving their size and position on
the unmap callback, if the client-side decoration header bar is removed
first, the reported size will be wrong.

https://bugzilla.gnome.org/show_bug.cgi?id=756618

10 years agowayland: re-configure surface even if size matches
Olivier Fourdan [Tue, 1 Dec 2015 13:52:03 +0000 (14:52 +0100)]
wayland: re-configure surface even if size matches

gdk-wayland backend would not re-configure a surface when its size and
scale match the known size and scale.

But there might be a pending xdg_surface_configure() that would revert
this change so we should re-configure even if the currently known
size/scale match, otherwise we may end up with a wrong size after the
xdg_surface_configure() is received.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=758901

10 years agowayland: Invert drop_finished/button release call order
Carlos Garnacho [Tue, 1 Dec 2015 14:11:52 +0000 (15:11 +0100)]
wayland: Invert drop_finished/button release call order

If we "release" the button first, the drag will be eventually cancelled,
we must first signal GDK_DROP_FINISHED, and then release the button so
the success status prevails.

10 years agowayland: Store requested target on GdkWaylandSelection
Carlos Garnacho [Tue, 1 Dec 2015 12:58:21 +0000 (13:58 +0100)]
wayland: Store requested target on GdkWaylandSelection

It doesn't make a lot of sense to have this stored as data offer data,
rather together with the source_targets array, which is what we're
poking here in the end.

https://bugzilla.gnome.org/show_bug.cgi?id=758713

10 years agoAdd some more missing nullable annotations
Timm Bäder [Tue, 1 Dec 2015 12:40:46 +0000 (13:40 +0100)]
Add some more missing nullable annotations

10 years agoGtkBox: The center widget can be NULL
Timm Bäder [Tue, 1 Dec 2015 12:36:21 +0000 (13:36 +0100)]
GtkBox: The center widget can be NULL

Propagates to GtkActionBar.

10 years agoGtkWidget: Add some missing nullable annotations
Timm Bäder [Tue, 1 Dec 2015 12:31:08 +0000 (13:31 +0100)]
GtkWidget: Add some missing nullable annotations

10 years agoinspector: Show the size request mode
Matthias Clasen [Tue, 1 Dec 2015 03:27:27 +0000 (22:27 -0500)]
inspector: Show the size request mode

This is not a property, so show it in the misc page.

10 years agowindow: Use g_set_object
Matthias Clasen [Tue, 1 Dec 2015 01:45:57 +0000 (20:45 -0500)]
window: Use g_set_object

No need to do the same thing manually.

10 years agotestentryicons: update dnd example
Matthias Clasen [Mon, 30 Nov 2015 23:41:33 +0000 (18:41 -0500)]
testentryicons: update dnd example

This code was #ifdefed out since 2008. Time to try it.

10 years agotestentryicons: Use an existing icon name
Matthias Clasen [Mon, 30 Nov 2015 23:21:44 +0000 (18:21 -0500)]
testentryicons: Use an existing icon name

dialog-info is not an existing icon.

10 years agowayland: Refactor selection ownership
Carlos Garnacho [Mon, 30 Nov 2015 17:35:10 +0000 (18:35 +0100)]
wayland: Refactor selection ownership

Dissociate ownership from our maintenance of wl_data_source objects.
The only place where ownership must be updated together is
data_source.cancelled, for the other places GDK should take care of
setting up the right ownership, even if at a different order than
we'd expect here.

This fixes GTK+ apps on wayland being locally confused about the
current selection ownership. Because gtk_selection_add_targets()
results in a wl_data_source being created, and ownership being
updated right away, early callers of this will change the ownership
even if the widget it's being called on didn't explicitly request
the selection ownership yet.

https://bugzilla.gnome.org/show_bug.cgi?id=758660

10 years agotextiter: fix bug in case insensitive backward search
Sébastien Wilmet [Thu, 26 Nov 2015 12:31:19 +0000 (13:31 +0100)]
textiter: fix bug in case insensitive backward search

'win.lines' contains the same content as the GtkTextBuffer, so to find
@match_start, forward_chars_with_skipping() is called with
skip_decomp=FALSE (the last parameter). So far so good.

On the other hand, the content 'lines' (the needle split in lines) is
casefolded and normalized for a case insensitive search. So,
forward_chars_with_skipping(..., skip_decomp=TRUE) must be called only
for the portion of text containing the needle.

Since 'start_tmp' contains the location at the start of the match, we
can simply begin at that location to find the end of the match.

Unit tests are added.

https://bugzilla.gnome.org/show_bug.cgi?id=758698

10 years agolistbox: Use :focus-on-click policy from row instead of list
Florian Müllner [Wed, 25 Nov 2015 00:05:04 +0000 (01:05 +0100)]
listbox: Use :focus-on-click policy from row instead of list

Using the property from the container is inconsistent with the
:selectable and :activatable properties, which are per row.

10 years agoicon-browser: Stop using GtkMisc properties
Timm Bäder [Sat, 28 Nov 2015 20:00:29 +0000 (21:00 +0100)]
icon-browser: Stop using GtkMisc properties

Instead of xpad/ypad of 4 for every widget, just increase the
row-spacing and column-spacing by 8.

https://bugzilla.gnome.org/show_bug.cgi?id=758790

10 years agoicon-browser: Use proper "times" character
Timm Bäder [Sat, 28 Nov 2015 19:51:48 +0000 (20:51 +0100)]
icon-browser: Use proper "times" character

https://bugzilla.gnome.org/show_bug.cgi?id=758790

10 years agoicon-browser: baseline-align the icon size labels
Timm Bäder [Sat, 28 Nov 2015 19:48:40 +0000 (20:48 +0100)]
icon-browser: baseline-align the icon size labels

https://bugzilla.gnome.org/show_bug.cgi?id=758790

10 years agostack: Update windows before allocating children
Matthias Clasen [Mon, 30 Nov 2015 15:35:04 +0000 (10:35 -0500)]
stack: Update windows before allocating children

Doing things the other way around seems to cause problems in
some cases where children want to do different things depending
on the window position.

https://bugzilla.gnome.org/show_bug.cgi?id=758563

10 years agoscalebutton: Annotate the return type
Emmanuele Bassi [Mon, 30 Nov 2015 14:09:19 +0000 (14:09 +0000)]
scalebutton: Annotate the return type

Instead of just listing the return type of get_plus_button() and
get_minus_button() in the documentation, we can use the (type)
annotation to ensure that the introspection data reflects the actual
type of the returned widget.

10 years agogtkwindow: fix regression with firefox dropdown menu
Benjamin Otte [Thu, 26 Nov 2015 10:00:17 +0000 (11:00 +0100)]
gtkwindow: fix regression with firefox dropdown menu

Fix a regression introduced by:

commit 6866d1c widget: Make gtk_widget_queue_allocate() not resize

Where the dropdown menu in Firefox would not be relocated after the
toplevel window is moved.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=758609

10 years agoGtkScaleButton: _get_(plus|minus)_button returns a GtkButton
Timm Bäder [Sun, 22 Nov 2015 09:35:25 +0000 (10:35 +0100)]
GtkScaleButton: _get_(plus|minus)_button returns a GtkButton

https://bugzilla.gnome.org/show_bug.cgi?id=539944

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 28 Nov 2015 09:27:22 +0000 (09:27 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 28 Nov 2015 09:21:52 +0000 (09:21 +0000)]
Updated Portuguese translation

10 years agoUpdated Polish translation
Piotr Drąg [Fri, 27 Nov 2015 22:30:07 +0000 (23:30 +0100)]
Updated Polish translation

10 years agoAdwaita: No background for spinners
Matthias Clasen [Thu, 26 Nov 2015 20:01:22 +0000 (15:01 -0500)]
Adwaita: No background for spinners

Blue background for spinners doesn't make sense.

10 years agoGDK W32: Add a comment for clarity
Руслан Ижбулатов [Sat, 21 Nov 2015 04:00:33 +0000 (04:00 +0000)]
GDK W32: Add a comment for clarity

This is a copy of a similar comment in another place, which explains
why WS_EX_TRANSPARENT windows get a special treatment.

https://bugzilla.gnome.org/show_bug.cgi?id=758484

10 years agoGDK W32: Clarify the use of the second argument to SetWindowPos()
Руслан Ижбулатов [Sat, 21 Nov 2015 03:58:22 +0000 (03:58 +0000)]
GDK W32: Clarify the use of the second argument to SetWindowPos()

https://bugzilla.gnome.org/show_bug.cgi?id=758484

10 years agoGDK W32: Don't use SetWindowLong() to set/unset WS_EX_TOPMOST
Руслан Ижбулатов [Sat, 21 Nov 2015 03:48:55 +0000 (03:48 +0000)]
GDK W32: Don't use SetWindowLong() to set/unset WS_EX_TOPMOST

While searching for the cause of bug 746745 it was discovered that one could
not set WS_EX_TOPMOST extended window style with SetWindowLong(),
but must use SetWindowPos() for that purpose.

This was never a problem most likely because it is highly unlikely for windows
to acquire/lose WS_EX_TOPMOST after they are created, by means other
than SetWindowPos() (which GTK does use to raise/lower windows and
set/remove keep_above), and because trying to set/unset WS_EX_TOPMOST with
SetWindowLong() results in WS_EX_TOPMOST merely not being set/unset (that is,
other styles are still set/unset within the same call and no error is
signalled).

https://bugzilla.gnome.org/show_bug.cgi?id=758483

10 years agowayland: Use xdg shell protocol from wayland-protocols
Jonas Ådahl [Wed, 18 Nov 2015 03:46:50 +0000 (11:46 +0800)]
wayland: Use xdg shell protocol from wayland-protocols

Drop our own copy of the xdg shell XML file, and use the one installed
by wayland-protocols.

https://bugzilla.gnome.org/show_bug.cgi?id=758634

10 years agowayland: Use pointer gestures protocol from wayland-protocols
Jonas Ådahl [Wed, 18 Nov 2015 03:38:28 +0000 (11:38 +0800)]
wayland: Use pointer gestures protocol from wayland-protocols

Instead of having our own copy of the pointer gestures XML file, use
the one installed by wayland-protocols.

Since pointer gestures is an unstable protocol, it went through the
unstable protocol naming convention changes, which is reflected in this
commit.

https://bugzilla.gnome.org/show_bug.cgi?id=758634

10 years agoUpdated POTFILES.in
Piotr Drąg [Wed, 25 Nov 2015 23:51:08 +0000 (00:51 +0100)]
Updated POTFILES.in

10 years agoGtkWindow: Reset gestures after triggering right click titlebar action
Carlos Garnacho [Wed, 25 Nov 2015 16:28:15 +0000 (17:28 +0100)]
GtkWindow: Reset gestures after triggering right click titlebar action

Just like it happens for window dragging, we're likely to not see the
matching button release for this event, so we must reset the controller
manually here.

https://bugzilla.gnome.org/show_bug.cgi?id=758661

10 years agowindow: Don't lose position information
Benjamin Otte [Wed, 25 Nov 2015 14:25:55 +0000 (15:25 +0100)]
window: Don't lose position information

Before calling gdk_window_move_resize(), store the full configure
request, not just width and height.

Fixes firefox randomly losing position of its dropdown windows.

https://bugzilla.gnome.org/show_bug.cgi?id=758609

10 years agodnd: Split GtkDragSourceSite into its own file
Benjamin Otte [Sun, 22 Nov 2015 04:26:08 +0000 (05:26 +0100)]
dnd: Split GtkDragSourceSite into its own file

10 years agodnd-quartz: fix missing icon helper include
Christoph Reiter [Wed, 25 Nov 2015 19:27:21 +0000 (20:27 +0100)]
dnd-quartz: fix missing icon helper include

10 years agodnd: Just pass iconhelper instead of whole DragSourceSite
Benjamin Otte [Sun, 22 Nov 2015 04:08:34 +0000 (05:08 +0100)]
dnd: Just pass iconhelper instead of whole DragSourceSite

Simplifies the code.

10 years agodnd: Remove unused struct members
Benjamin Otte [Sat, 21 Nov 2015 19:14:24 +0000 (20:14 +0100)]
dnd: Remove unused struct members

10 years agoiconhelper: Don't include gtk.h
Benjamin Otte [Sat, 21 Nov 2015 16:38:48 +0000 (17:38 +0100)]
iconhelper: Don't include gtk.h

10 years agoiconhelper: Remove unused function
Benjamin Otte [Mon, 23 Nov 2015 04:00:39 +0000 (05:00 +0100)]
iconhelper: Remove unused function

10 years agoiconhelper: Remove unused context argument
Benjamin Otte [Sun, 22 Nov 2015 18:42:33 +0000 (19:42 +0100)]
iconhelper: Remove unused context argument

Various functions don't use the style context.

10 years agowayland: remove embarrassing g_print()s
Carlos Garnacho [Tue, 24 Nov 2015 19:57:03 +0000 (20:57 +0100)]
wayland: remove embarrassing g_print()s

10 years agowayland: Do not store the grab cursor separately
Carlos Garnacho [Fri, 19 Jun 2015 12:02:42 +0000 (14:02 +0200)]
wayland: Do not store the grab cursor separately

After the grab is finished, we would expect an enter event, and
GDK updating internally the cursor for that window and device.
This means there is no need at all to store it separately in the
backend.

As a side effect, animated cursors are now also possible on grab
icons.

https://bugzilla.gnome.org/show_bug.cgi?id=735847

10 years agodevice: Fix dispose
Carlos Garnacho [Tue, 24 Nov 2015 16:53:41 +0000 (17:53 +0100)]
device: Fix dispose

The way master devices detach from their other master counterpart is
vulnerable to infinite recursion due to the way we first recurse on
the other device before clearing the pointer, this may happen if
that last reference to the other master device is held by the
device->associated field.

https://bugzilla.gnome.org/show_bug.cgi?id=732742

10 years agowayland: Plug surface leak
Carlos Garnacho [Tue, 24 Nov 2015 16:41:58 +0000 (17:41 +0100)]
wayland: Plug surface leak

Other backends take care of the cairo surface destruction in
GdkWindow::destroy. We must do the same here, or the cairo_surface
and its corresponding wl_buffer are left dangling.

https://bugzilla.gnome.org/show_bug.cgi?id=747295

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 24 Nov 2015 15:20:20 +0000 (15:20 +0000)]
Updated Spanish translation

10 years agodialog: Use an element name
Matthias Clasen [Tue, 24 Nov 2015 12:41:26 +0000 (07:41 -0500)]
dialog: Use an element name

This will help differentiating dialogs from other windows, style-wise.

10 years agoGtkPopover: Restore tails
Timm Bäder [Tue, 24 Nov 2015 10:37:00 +0000 (11:37 +0100)]
GtkPopover: Restore tails

The call to gtk_style_context_get_border was accidentally removed in
2182fe7d9d6246e7acfe4e9ef0ca26c4a6893be6.

10 years agoinspector: Leave unneeded widgets out of source files
Timm Bäder [Tue, 24 Nov 2015 09:48:28 +0000 (10:48 +0100)]
inspector: Leave unneeded widgets out of source files

10 years agoGtkWidget: Add some missing nullable annotations
Timm Bäder [Tue, 24 Nov 2015 09:49:05 +0000 (10:49 +0100)]
GtkWidget: Add some missing nullable annotations

10 years agoGtkStack: Add some missing nullable annotations
Timm Bäder [Tue, 24 Nov 2015 08:44:08 +0000 (09:44 +0100)]
GtkStack: Add some missing nullable annotations

10 years agoAdd a test for deprecated css properties
Matthias Clasen [Tue, 24 Nov 2015 03:31:20 +0000 (22:31 -0500)]
Add a test for deprecated css properties

10 years ago3.19.3
Matthias Clasen [Mon, 23 Nov 2015 20:36:34 +0000 (15:36 -0500)]
3.19.3

10 years agoshortcuts section: Fix destroy
Matthias Clasen [Tue, 24 Nov 2015 00:48:50 +0000 (19:48 -0500)]
shortcuts section: Fix destroy

The container destroy implementation does not quite work here,
so do our own.

10 years agoFix some new symbols for the docs
Matthias Clasen [Mon, 23 Nov 2015 22:00:24 +0000 (17:00 -0500)]
Fix some new symbols for the docs

10 years agoRaleigh: Avoid deprecated icon-shadow
Matthias Clasen [Mon, 23 Nov 2015 19:44:27 +0000 (14:44 -0500)]
Raleigh: Avoid deprecated icon-shadow

10 years agoplaces view: Fix up docs
Matthias Clasen [Mon, 23 Nov 2015 19:23:16 +0000 (14:23 -0500)]
places view: Fix up docs

10 years agogtk: Fix make dist
Rico Tzschichholz [Mon, 23 Nov 2015 21:24:41 +0000 (22:24 +0100)]
gtk: Fix make dist

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 23 Nov 2015 18:04:26 +0000 (19:04 +0100)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 23 Nov 2015 18:04:16 +0000 (19:04 +0100)]
Updated Spanish translation

10 years agosearchenginetracker: Remove astray ");" closing a function
Carlos Garnacho [Mon, 23 Nov 2015 17:18:46 +0000 (18:18 +0100)]
searchenginetracker: Remove astray ");" closing a function

Sad face for me.

10 years agosearchenginetracker: Optimize direct/recursive folder lookups
Carlos Garnacho [Fri, 20 Nov 2015 18:04:39 +0000 (19:04 +0100)]
searchenginetracker: Optimize direct/recursive folder lookups

tracker:uri-is-descendant/parent has the unfortunate side effect of
rendering the collation mechanisms in the database useless, so those
require full table scans to be validated.

Performing these as pure string comparisons will perform much better,
as those allow the underlying sqlite to rely on its own collation
to perform the search, which can be significantly faster with many
elements in the database.

https://bugzilla.gnome.org/show_bug.cgi?id=758407

10 years agosearchenginetracker: ensure nie:url is bound
Carlos Garnacho [Fri, 20 Nov 2015 18:02:17 +0000 (19:02 +0100)]
searchenginetracker: ensure nie:url is bound

This could produce strange warnings as it is currently passed to
tracker:uri-is-* sparql functions, as these expect no NULLs.

https://bugzilla.gnome.org/show_bug.cgi?id=758407

10 years agolast last gesture stock image fixes
Jakub Steiner [Mon, 23 Nov 2015 15:13:45 +0000 (16:13 +0100)]
last last gesture stock image fixes

- swipe left was missing outline conversion to allow recolorization

10 years agoLoad gesture images as symbolic icons
Matthias Clasen [Mon, 23 Nov 2015 15:07:44 +0000 (10:07 -0500)]
Load gesture images as symbolic icons

This makes them recolor in the dark theme, which looks better.

10 years agogesture stock images size fix
Jakub Steiner [Mon, 23 Nov 2015 14:53:02 +0000 (15:53 +0100)]
gesture stock images size fix

fit all images to 64x64

10 years agogesture stock images fixes
Jakub Steiner [Mon, 23 Nov 2015 14:45:24 +0000 (15:45 +0100)]
gesture stock images fixes

- convert all objects to shapes to allow css recoloring
  ala symbolic icons

10 years agomore gesture stock images tweaks
Jakub Steiner [Mon, 23 Nov 2015 13:39:53 +0000 (14:39 +0100)]
more gesture stock images tweaks

- rotation gestures more natural look

10 years agogtk-demo: Stop using GtkShortcutsGesture
Matthias Clasen [Mon, 23 Nov 2015 13:37:14 +0000 (08:37 -0500)]
gtk-demo: Stop using GtkShortcutsGesture

Use the new predefined gestures, and GtkShortcutsShortcut.

10 years agoTweak the gtk-font-name setting docs
Matthias Clasen [Mon, 23 Nov 2015 13:17:49 +0000 (08:17 -0500)]
Tweak the gtk-font-name setting docs

Clarify that only parts of the font name are used.

https://bugzilla.gnome.org/show_bug.cgi?id=758367

10 years agogesture stock images sizing
Jakub Steiner [Mon, 23 Nov 2015 13:06:18 +0000 (14:06 +0100)]
gesture stock images sizing

- make swipe left and right less wide

10 years agominor touchups on stock gesture images
Jakub Steiner [Mon, 23 Nov 2015 12:53:12 +0000 (13:53 +0100)]
minor touchups on stock gesture images

- add minimal margin for safe scaling
- fixed height of 64pixels
- pixel alignment issues (grid fit)

10 years agoshortcuts: Add set properties for optional things
Matthias Clasen [Sun, 22 Nov 2015 20:27:05 +0000 (15:27 -0500)]
shortcuts: Add set properties for optional things

This makes it possible to switch between gesture and accelerator
types and override the builtin icons and subtitles for predefined
gestures.

10 years agogtk-demo: Show all built-in gesture images
Matthias Clasen [Sun, 22 Nov 2015 07:25:16 +0000 (02:25 -0500)]
gtk-demo: Show all built-in gesture images

Show all the predefined gestures which have enum values
in GtkShortcutType. This also demonstrates the gesture
functionality of GtkShortcutsShortcut.

10 years agoshortcuts: Add support for standard gestures
Matthias Clasen [Sun, 22 Nov 2015 07:24:12 +0000 (02:24 -0500)]
shortcuts: Add support for standard gestures

Add an enum for gestures that GtkShortcutsShortcut knows how
to show an image and subtitle for.

https://bugzilla.gnome.org/show_bug.cgi?id=758187

10 years agoAdd stock gesture images
Matthias Clasen [Sun, 22 Nov 2015 07:23:28 +0000 (02:23 -0500)]
Add stock gesture images

These will be used in the shortcuts window.

10 years agoshortcuts shortcut: Take over gesture functionality
Matthias Clasen [Sun, 22 Nov 2015 06:18:54 +0000 (01:18 -0500)]
shortcuts shortcut: Take over gesture functionality

It turns out that it is nicer in glade to have just a single
widget that can show either a shortcut or a gesture, so make
GtkShortcutsShortcut do it both.

GtkShortcutsGesture is now redundant and will be removed before
the next stable release.

10 years agoshortcuts: Fix size group handling
Matthias Clasen [Sun, 22 Nov 2015 19:16:12 +0000 (14:16 -0500)]
shortcuts: Fix size group handling

We need to keep pointers to the size groups and apply
them to shortcuts that are added later.

10 years agoshortcuts: Complete the container implementations
Matthias Clasen [Sat, 21 Nov 2015 03:58:06 +0000 (22:58 -0500)]
shortcuts: Complete the container implementations

Various problems with the container implementations in
GtkShortcutsWindow, Section and Group were showing up
in glade.

10 years agoshortcuts: Update title and section-names properly
Matthias Clasen [Sat, 21 Nov 2015 03:03:39 +0000 (22:03 -0500)]
shortcuts: Update title and section-names properly

The current code in gtkshortcutswindow.c is good enough to
construct a widget once from a .ui file, but fails to handle
changes at runtime, as happen e.g. in glade. Fix this by
listening for changes to section-name and title.

10 years agoUpdated POTFILES.in
Piotr Drąg [Sun, 22 Nov 2015 19:01:39 +0000 (20:01 +0100)]
Updated POTFILES.in

10 years agoDon't pass widget state flags to GtkStyleContext API
Timm Bäder [Sun, 22 Nov 2015 10:43:39 +0000 (11:43 +0100)]
Don't pass widget state flags to GtkStyleContext API

10 years agoGDK W32: Only restack windows with matching always-on-top status
Руслан Ижбулатов [Sat, 21 Nov 2015 03:38:26 +0000 (03:38 +0000)]
GDK W32: Only restack windows with matching always-on-top status

This prevents normal application windows (and other kinds of windows)
from being moved up in Z-order to be above windows that have the
always-on-top bit set. Doing so would make the previously-normal windows
in question also always-on-top implicitly.
Windows that are already always-on-top will be restacked on top of other
always-on-top windows too.

https://bugzilla.gnome.org/show_bug.cgi?id=746745

10 years agoGDK W32: Refactor restacking functions a bit
Руслан Ижбулатов [Sat, 21 Nov 2015 03:37:40 +0000 (03:37 +0000)]
GDK W32: Refactor restacking functions a bit

10 years agoGtkRenderBorder: make one function static
Cosimo Cecchi [Sat, 21 Nov 2015 05:48:31 +0000 (21:48 -0800)]
GtkRenderBorder: make one function static

10 years agoGtkCssImage: formatting fixes
Cosimo Cecchi [Sat, 21 Nov 2015 05:20:48 +0000 (21:20 -0800)]
GtkCssImage: formatting fixes

10 years agogtk-demo: Fix selection in css basics demo
Timm Bäder [Sat, 21 Nov 2015 20:04:02 +0000 (21:04 +0100)]
gtk-demo: Fix selection in css basics demo

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sat, 21 Nov 2015 09:01:10 +0000 (09:01 +0000)]
Updated Portuguese translation

10 years agoinspector: Always underline at least one char
Matthias Clasen [Sat, 21 Nov 2015 01:58:42 +0000 (20:58 -0500)]
inspector: Always underline at least one char

Empty underlines are hard to make out. Since we get somewhat
unreliable section information from the CSS parser, we just
make sure that we always underline at least one character.

10 years agocssnodedeclaration: Only set the id on the widget path if we have one
Benjamin Otte [Sat, 21 Nov 2015 01:40:05 +0000 (02:40 +0100)]
cssnodedeclaration: Only set the id on the widget path if we have one

Widget paths don't like NULL.